package com.sz.admin.teacher.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class TeacherStatisticsTableDef extends TableDef {

    /**
     * <p>
 教师统计总览表
 </p>

 @author sz
 @since 2024-02-19
     */
    public static final TeacherStatisticsTableDef TEACHER_STATISTICS = new TeacherStatisticsTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn YEAR = new QueryColumn(this, "year");

    public final QueryColumn MONTH = new QueryColumn(this, "month");

    public final QueryColumn REMARK = new QueryColumn(this, "remark");

    public final QueryColumn CREATE_ID = new QueryColumn(this, "create_id");

    public final QueryColumn UPDATE_ID = new QueryColumn(this, "update_id");

    public final QueryColumn CHECK_TIME = new QueryColumn(this, "check_time");

    public final QueryColumn DEPT_SCOPE = new QueryColumn(this, "dept_scope");

    public final QueryColumn TEACHER_ID = new QueryColumn(this, "teacher_id");

    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    public final QueryColumn DURING_TIME = new QueryColumn(this, "during_time");

    public final QueryColumn TOTAL_HOURS = new QueryColumn(this, "total_hours");

    public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");

    public final QueryColumn CHECK_STATUS = new QueryColumn(this, "check_status");

    public final QueryColumn LAST_SYNC_TIME = new QueryColumn(this, "last_sync_time");

    public final QueryColumn TOTAL_TEACHING = new QueryColumn(this, "total_teaching");

    public final QueryColumn TOTAL_CLASS_COUNT = new QueryColumn(this, "total_class_count");

    public final QueryColumn TEACHER_COMMON_TYPE = new QueryColumn(this, "teacher_common_type");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, YEAR, MONTH, REMARK, CREATE_ID, UPDATE_ID, CHECK_TIME, DEPT_SCOPE, TEACHER_ID, CREATE_TIME, DURING_TIME, TOTAL_HOURS, UPDATE_TIME, CHECK_STATUS, LAST_SYNC_TIME, TOTAL_TEACHING, TOTAL_CLASS_COUNT, TEACHER_COMMON_TYPE};

    public TeacherStatisticsTableDef() {
        super("", "teacher_statistics");
    }

    private TeacherStatisticsTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public TeacherStatisticsTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new TeacherStatisticsTableDef("", "teacher_statistics", alias));
    }

}
